package com.CNMedical.system.mapper;

import java.util.List;

import com.diboot.core.mapper.BaseCrudMapper;
import com.CNMedical.system.domain.entity.AppletQuestion;

/**
 * 试题Mapper接口
 * 
 * @author tang
 * @date 2023-03-28
 */
public interface AppletQuestionMapper extends BaseCrudMapper<AppletQuestion>
{
    /**
     * 查询试题
     * 
     * @param id 试题主键
     * @return 试题
     */
    public AppletQuestion selectAppletQuestionById(Long id);

    /**
     * 查询试题列表
     * 
     * @param appletQuestion 试题
     * @return 试题集合
     */
    public List<AppletQuestion> selectAppletQuestionList(AppletQuestion appletQuestion);

    /**
     * 新增试题
     * 
     * @param appletQuestion 试题
     * @return 结果
     */
    public int insertAppletQuestion(AppletQuestion appletQuestion);

    /**
     * 修改试题
     * 
     * @param appletQuestion 试题
     * @return 结果
     */
    public int updateAppletQuestion(AppletQuestion appletQuestion);

    /**
     * 删除试题
     * 
     * @param id 试题主键
     * @return 结果
     */
    public int deleteAppletQuestionById(Long id);

    /**
     * 批量删除试题
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppletQuestionByIds(Long[] ids);
}
